﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="ControlViaje.ascx.cs" Inherits="Controles_ControlViaje" %>


<style type="text/css">
    .style1
    {
        width: 250px;
    }
</style>


<div>
    <table border="0" style="border-style: outset; width: 320px; margin-right: 4px" 
        frame="border">
        <tr>
            <td align="right" class="style1" style="border-style: ridge">
                <asp:Label ID="lbApellido" runat="server" Text="Apellido: "></asp:Label>
            </td>
            <td class="style2" style="border-style: ridge">
                <asp:TextBox ID="tbApellido" runat="server" Height="20px" Width="212px"></asp:TextBox>
                <asp:RequiredFieldValidator ID="ApellidoRequired" runat="server" 
                    ControlToValidate="tbApellido" ErrorMessage="Requiere un Apellido" 
                    ForeColor="Red">*</asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td align="right" class="style1" style="border-style: ridge">    
                <asp:Label ID="lbNombre" runat="server" Text="Nombre: "></asp:Label>
            </td>
            <td class="style2" style="border-style: ridge">
                <asp:TextBox ID="tbNombre" runat="server" Height="20px" Width="212px"></asp:TextBox>
                <asp:RequiredFieldValidator ID="NombreRequired" runat="server" 
                    ControlToValidate="tbNombre" ErrorMessage="Requiere un Nombre" ForeColor="Red">*</asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td align="right" class="style1" style="border-style: ridge"> 
            <asp:Label ID="lbEmail" runat="server" Text="Email: "></asp:Label>
            </td>
            <td class="style2" style="border-style: ridge">
                <asp:TextBox ID="tbEmail" runat="server" Height="20px" Width="212px"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                    ControlToValidate="tbEmail" ErrorMessage="Requiere un Nombre" ForeColor="Red">*</asp:RequiredFieldValidator> 
                <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" 
                    ControlToValidate="tbEmail" ErrorMessage="Ingrese un email valido" 
                    ForeColor="Red" 
                    ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*">*</asp:RegularExpressionValidator>
            </td>
        </tr>
        <tr>
            <td align="right" class="style1" style="border-style: ridge">
                <asp:Label ID="lbTipoViaje" runat="server" Text="Tipo de Viaje: "></asp:Label>
            </td>
            <td class="style2" style="border-style: ridge">
                <asp:DropDownList ID="ddlTipoViaje" runat="server"/>
            </td>
        </tr>
        <tr>
            <td align="right" class="style1" style="border-style: ridge">    
                <asp:Label ID="lbOrigen" runat="server" Text="Origen: "></asp:Label>
            </td>
            <td class="style2" style="border-style: ridge">  
                <asp:DropDownList ID="ddlOrigen" runat="server"/>
            </td>
        </tr>
        <tr>
            <td align="right" class="style1" style="border-style: ridge"> 
                <asp:Label ID="lbDestino" runat="server" Text="Destino: "></asp:Label>
            </td>
            <td class="style2" style="border-style: ridge">
                <asp:DropDownList ID="ddlDestino" runat="server"/>
            </td>
        </tr>
        <tr>
            <td align="right" class="style1" style="border-style: ridge"> 
                <asp:Label ID="lbFechaSalida" runat="server" Text="Salida: "></asp:Label>
                
            </td>
            <td class="style2" style="border-style: ridge">
                <asp:TextBox ID="tbFechaSalida" runat="server"></asp:TextBox>
                <ajaxToolkit:CalendarExtender ID="cld_inicio" runat="server" TargetControlID="tbFechaSalida" Format="dd/MM/yyyy" PopupButtonID="tbFechaSalida"></ajaxToolkit:CalendarExtender>
                <div style='font-size: 70%; padding-left:220px;'>
            </td>
        </tr>
        <tr>
            <td align="right" class="style1" style="border-style: ridge">
                <asp:Label ID="lbRegreso" runat="server" Text="Regreso: "></asp:Label>
            </td>
            <td class="style2" style="border-style: ridge">
                <asp:TextBox ID="tbRegreso"  runat="server"></asp:TextBox>
                <ajaxToolkit:CalendarExtender ID="cld_regreso" runat="server" TargetControlID="tbRegreso" Format="dd/MM/yyyy" PopupButtonID="tbRegreso"  ></ajaxToolkit:CalendarExtender>
            </td>
        </tr>
        <tr>
            <td class="style1" align="right" style="border-style: ridge">
                <asp:Label ID="lbEdades" runat="server" Text="Edades:"></asp:Label> 
                </td>
            <td style="border-style: ridge">
                <asp:TextBox ID="tbEdad1" runat="server" Height="19px" Width="22px">0</asp:TextBox>
            
                <asp:TextBox ID="tbEdad2" runat="server" Height="19px" Width="22px">0</asp:TextBox>
            
                <asp:TextBox ID="tbEdad3" runat="server" Height="19px" Width="22px">0</asp:TextBox>
            
                <asp:TextBox ID="tbEdad4" runat="server" Height="19px" Width="22px">0</asp:TextBox>
            
                <asp:TextBox ID="tbEdad5" runat="server" Height="19px" Width="22px">0</asp:TextBox>
            </td>
        </tr>
        <%--<tr>
            <td></td>
             <td></td>
        </tr>
--%>
   </table>
   <asp:ImageButton ID="ImageButton1" runat="server" 
                     ImageUrl="../images/Cotizar.png" Height="29px" onclick="ImageButton1_Click" 
                     Width="78px"/>
   
<%--   <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="tbEmail"
        ErrorMessage="La direccion de email no es válida" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"
        ></asp:RegularExpressionValidator>
    <asp:RegularExpressionValidator ID="RegularExpressionValidator9" runat="server" ControlToValidate="tbFechaSalida"
        ErrorMessage="No es una fecha válida" ValidationExpression="^(?:(?:(?:0?[1-9]|1\d|2[0-8])\/(?:0?[1-9]|1[0-2]))\/(?:(?:1[6-9]|[2-9]\d)\d{2}))$|^(?:(?:(?:31\/0?[13578]|1[02])|(?:(?:29|30)\/(?:0?[1,3-9]|1[0-2])))\/(?:(?:1[6-9]|[2-9]\d)\d{2}))$|^(?:29\/0?2\/(?:(?:(?:1[6-9]|[2-9]\d)(?:0[48]|[2468][048]|[13579][26]))))$"
        ></asp:RegularExpressionValidator>
    <asp:RegularExpressionValidator ID="RegularExpressionValidator10" runat="server" ControlToValidate="tbRegreso"
        ErrorMessage="No es una fecha válida" ValidationExpression="^(?:(?:(?:0?[1-9]|1\d|2[0-8])\/(?:0?[1-9]|1[0-2]))\/(?:(?:1[6-9]|[2-9]\d)\d{2}))$|^(?:(?:(?:31\/0?[13578]|1[02])|(?:(?:29|30)\/(?:0?[1,3-9]|1[0-2])))\/(?:(?:1[6-9]|[2-9]\d)\d{2}))$|^(?:29\/0?2\/(?:(?:(?:1[6-9]|[2-9]\d)(?:0[48]|[2468][048]|[13579][26]))))$"
        ></asp:RegularExpressionValidator>--%>
    
</div>
<p>
    <asp:Label ID="Label1" runat="server" Text="Label"></asp:Label>
</p>

